<template>
  <div>
    <h1 class="title2">{{title}}分类</h1>
    <ol>
      <li v-for="(item,idx) in listData" :key="idx">{{ item }}</li>
    </ol>
    <slot>not used slot</slot>
  </div>
</template>

<script>
export default {
  name: "Category",
  props:['listData','title']
}
</script>

<style scoped>
  .title2{
    background-color: #0f0f0f;
    color: white;
  }

</style>
